#-*-encoding=utf-8-*-
name=u'dingcan'
title=u'定餐表单'
description=u'None'
fields=(
    SingleSelectField(
        title=u'餐馆',
        vocabulary_exp=u'flowsettings["canguan"]',
        limit=4,
        default_value_exp=u'""',
        name=u'canguan'
),
    TextLineField(
        title=u'菜名',
        size=18,
        default_value_exp=u'""',
        name=u'title'
),
    IntegerField(
        maxval=10000,
        title=u'价格',
        minval=0,
        write_condition=u'',
        size=18,
        default_value_exp=u'8',
        name=u'price'
),
    DateField(
        minutestep=5,
        title=u'定餐日期',
        showtime=False,
        default_value_exp=u'datetime.datetime.today()',
        name=u'start'
),
    TextField(
        rows=5,
        title=u'备注',
        cols=10,
        write_condition=u'',
        default_value_exp=u'""',
        name=u'description'
),)

displayed_columns = [u'canguan', u'title', u'price', u'start']
fields_validation_script=ur""""""
